import request from '@/utils/request'

export const roleList = (data) => {
  return request({
    url: '/role/list',
    params: data
  })
}

export const rolePermission = (roleId) => {
  return request({
    url: `/role/permission/${roleId}`
  })
}

export const distributePermission = (data) => {
  return request({
    url: '/role/distribute-permission',
    method: 'POST',
    data
  })
}
